package com.ding.second.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.ding.second.dao.ProductImageMapper;
import com.ding.second.po.ProductImage;
import com.ding.second.service.ProductImageService;

@Service("productImageServer")
public class ProductImageServerImpl implements ProductImageService{

	@Autowired
	private ProductImageMapper productImageMapper;
	
	@Override
	public boolean insertImage(ProductImage productImage) {
		return productImageMapper.insertImage(productImage);
	}

	@Override
	public boolean deleteImageByImageId(String imageId) {
		return productImageMapper.deleteImageByImageId(imageId);
	}

	@Override
	public List<ProductImage> gettImageByProductId(String productId) {
		return productImageMapper.gettImageByProductId(productId);
	}

}
